package com.zhouxiaoge.职责链模式.two;

/**
 * @author 周小哥 gqzmy@163.com 2022/10/8 13:56
 */

public class Women implements IWomen {

    private int type = 0;

    private String request;

    @Override
    public int getType() {
        return this.type;
    }

    @Override
    public String getRequest() {
        return this.request;
    }

    public Women(int type, String request) {
        this.type = type;
        switch (this.type) {
            case 1:
                this.request = "女儿的请求是：" + request;
                break;
            case 2:
                this.request = "妻子的请求是：" + request;
                break;
            case 3:
                this.request = "目前的请求是：" + request;
                break;
            default:
                break;
        }
    }
}
